home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
INFO
/
401BUGS.ZIP
/
32MEG.ASM
< prev
next >
Wrap
Assembly Source File
|
1991-06-05
|
1KB
|
49 lines
FILELEN equ 40000
BUFSIZE equ 2000 ;Magic equate
BUFCNT equ (FILELEN/BUFSIZE+1)*1024
assume cs:ms_test, ds:ms_test, es:ms_test
ms_test segment byte
org 100h
start:
mov ah, 03Ch
push cs
pop ds
mov dx, OFFSET filename
mov cx, 0
int 21h ;Open file
mov [ handle ], ax
mov cx, BUFCNT
write_loop:
push cx
mov ah, 40h
push cs
pop ds
mov dx, OFFSET filename
mov cx, BUFSIZE
mov bx, [ handle ]
int 21h
pop cx
loop write_loop
mov ah, 03Eh
mov bx, [ handle ]
int 21h
int 20h
handle dw ?
filename db '32MEG.DAT', 0
ms_test ends
end start